#ifndef DATASINGLETON_H
#define DATASINGLETON_H

#include "ui_sensertools.h"

class DataSingleton
{
public:
    static DataSingleton* GetInstace();
    Ui::SenserTools *ui;
    bool uart_port_status;

private:
    // 构造函数和析构函数私有化
    DataSingleton();
    virtual ~DataSingleton();

    // 删除拷贝构造函数和赋值运算符
    DataSingleton(const DataSingleton&) = delete;
    DataSingleton& operator=(const DataSingleton&) = delete;

    static DataSingleton* m_instanceSingleton;
};

#endif // DATASINGLETON_H
